-- GENERATED SPELL FOR [High Priestess Hai'watna] --


function spell0_11383(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(15586,pUnit)
pUnit:RegisterEvent('Sorts_11383', 3500, 1)
end

function spell1_11383(pUnit, Event) --@Hex,n/a--
pUnit:FullCastSpellOnTarget(18503,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11383', 10257, 1)
end

function spell2_11383(pUnit, Event) --@Shadow Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(14887,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11383', 3000, 1)
end

function Sorts_11383(pUnit, Event)
local choix_sorts_11383 = math.random(0, 2)
if choix_sorts_11383 == 0 then
pUnit:RegisterEvent('spell0_11383', 1, 1)
end
if choix_sorts_11383 == 1 then
pUnit:RegisterEvent('spell1_11383', 1, 1)
end
if choix_sorts_11383 == 2 then
pUnit:RegisterEvent('spell2_11383', 1, 1)
end
end

function mob11383_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11383', math.random(1500, 3000), 1)
end

function mob11383_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11383_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11383_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11383, 1, 'mob11383_Action')
RegisterUnitEvent(11383, 2, 'mob11383_Leave')
RegisterUnitEvent(11383, 3, 'mob11383_Kill')
RegisterUnitEvent(11383, 4, 'mob11383_Die')
